﻿namespace Sustainalytics.Events.Service.Errors
{ 
    public class ValueOutOfRangeDto<T> : ValidationResultDto where T:struct
    {
        public T? Min { get; set; }
        public T? Max { get; set; }
        public T Value { get; set; }
    }


    public class PropertyOutOfRangeDto<T> : ValidationResultDto where T : struct
    {
        public T? Min { get; set; }
        public T? Max { get; set; }
        public T Value { get; set; }

        public string PropertyName { get; set; }
    }
}
